Repository navigation
Conversation
The progress variable source was treated fully explicitly, which stalls the PV equation at high CFL. Add the decreasing part of dS/dPV, obtained from a forward-difference table lookup, to the Jacobian diagonal. With CFL 1e5, an ILU preconditioner and a consistent table, the unsteady 1D premixed flame converges in 8-10 inner iterations per time step and matches a 300-inner-iteration reference. Flamelet regression residuals shift slightly; reference values are not yet updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The extra Jacobian term changes the iteration history of the flamelet tests. The discrete adjoint tests change because the adjoint linear solves reuse the primal Jacobian; the converged adjoint is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvertBunschoten
requested changes
Nov 26, 2026
EvertBunschoten
left a comment
Member
There was a problem hiding this comment.
Good initiative! I think it would be a low hanging fruit to extend this feature to use the Jacobian of the other controlling variables as well. The Jacobian of the source term w.r.t. the progress variable is of course the highest, but I expect that the mixture fraction and variance of the pv are also relevant.
Comment on lines
+658
to
+663
| const su2double delta = 1e-6; | ||
| vector<su2double> scalars_pert = scalars; | ||
| scalars_pert[I_PROGVAR] += delta; | ||
| vector<su2double> sources_pert(table_sources.size()); | ||
| fluid_model_local->EvaluateDataSet(scalars_pert, FLAMELET_LOOKUP_OPS::SOURCES, sources_pert); | ||
| const su2double dsource = (fmax(0, sources_pert[I_PROGVAR]) - table_sources[I_PROGVAR]) / delta; |
Member
There was a problem hiding this comment.
Calculating the Jacobian of thermochemical variables should be done in the FlameletFluidModel class. When using MLP for example, the Jacobian can be calculated analytically.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The progress variable source was treated fully explicitly, which stalls the PV equation at high CFL. Add the decreasing part of dS/dPV, obtained from a forward-difference table lookup, to the Jacobian diagonal.
With CFL 1e5, an ILU preconditioner and a consistent table, the unsteady 1D premixed flame converges in 8-10 inner iterations per time step and matches a 300-inner-iteration reference.
Flamelet regression residuals shift slightly; reference values are not yet updated.
Proposed Changes
Give a brief overview of your contribution here in a few sentences.
Related Work
Resolve any issues (bug fix or feature request), note any related PRs, or mention interactions with the work of others, if any.
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.
pre-commit run --allto format old commits.